package ooday01;

public class StudentTest {
    public static void main(String[] args) {
        Student zg =new Student();
        zg.name="张光";
        zg.className="jsd2407";
        zg.stuid="001";
        zg.age=11;
        zg.sayhi();
        zg.study();
        zg.playWith("李四");
        //引用默认NULL，基本数据类型默认0
        Student lisi=new Student();
        lisi.sayhi();
        //zhangsan
        Student zhangsan =new Student();
        zhangsan.name="张三";
        zhangsan.age=21;
        zhangsan.className="jsd2407";
        zhangsan.stuid="002";
        //调用张三
        zhangsan.sayhi();
        zhangsan.study();
        zhangsan.playWith("zg");
    }
}
